package com.PictureSite.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.PictureSite.controller.PictureSiteImageController;
import com.PictureSite.model.PictureSitePostModel;

@SuppressWarnings("serial")
public class PictureSiteImageServlet extends PictureSiteCommonServlet {

	private PictureSiteImageController controller;
	private PictureSitePostModel model = new PictureSitePostModel();
	
	@Override
	public void init() throws ServletException {
		// TODO Auto-generated method stub
		super.init();
		this.controller = new PictureSiteImageController(getSharedFileService());
	}
	
	@Override
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		controller.imageSelector(req, resp, model);
	}

}
